package ar.edu.itba.jMEBowling.scenario;

import ar.edu.itba.jMEBowling.utils.Helpers;

import com.jme.bounding.BoundingBox;
import com.jme.scene.TriMesh;

public class Pin {
	private TriMesh pinMesh;
	private boolean isDown;

	public Pin(String modelFileName, String nodeName) {
		pinMesh = Helpers.getTriMeshFrom3DS(modelFileName, nodeName, 1, 0);
		pinMesh.setLocalScale(0.3f);
		pinMesh.setModelBound(new BoundingBox());

		pinMesh.updateModelBound();

		pinMesh.updateGeometricState(0.0f, true);
		isDown = false;
	}

	public TriMesh getMesh() {
		return pinMesh;
	}

}
